package com.hyj.jpdy.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hyj.jpdy.bean.vo.User;
import com.hyj.jpdy.dao.ICommonDAO;
import com.hyj.jpdy.service.ILoginService;


@Service
public class LoginService implements ILoginService{

	@Autowired
    private ICommonDAO dao;
	public void saveUser(User user) {
		String sql = " INSERT INTO  test(name) VALUES ( ?);  ";
		Object[] args = new Object[]{user.getPassword()};
		dao.update(sql, args);
		if(user.getPassword().equals("胡亚军4")){
			int a = 1/0;
		}
	}

	public User getUser(String account, String password) {
		// TODO Auto-generated method stub
		return null;
	}

}
